<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>若衣店铺后台管理系统</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <link rel="stylesheet" href="plugins/bootstrap/css/bootstrap.min.css"/>
  <!-- Font Awesome -->
  <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
  <!-- Ionicons -->
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
  <link rel="stylesheet" href="dist/css/skins/skin-blue.min.css">
  <link rel="stylesheet" href="bower_components/layer/skin/default/layer.css">
  <link rel="stylesheet" href="bower_components/ztree/css/metroStyle/metroStyle.css"/>
  <link rel="stylesheet" href="bower_components/treegrid/jquery.treegrid.css"/>
  <link rel="stylesheet" href="CSS/button.css"/>
  <link rel="stylesheet" href="CSS/index.css"/>
  <link rel="stylesheet" href="CSS/user-shop.css"/>
  <link rel="stylesheet" href="CSS/ruoyi/smsg.css"/>
  <link rel="stylesheet" type="text/css" href="CSS/start.css"/>
<script src="plugins/bootstrap/js/jquery-3.5.1.min.js"></script>
<script src="plugins/bootstrap/js/bootstrap.js"></script>
</head>

<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <!-- Main Header -->
  <header class="main-header">

    <!-- Logo -->
    <a class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini">若衣店铺后台管理系统</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg">店铺管理</span>
    </a>

  </header>
  <!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
    <section class="sidebar">
      <ul class="sidebar-menu" data-widget="tree">
        <li class="treeview">
          <a href="#"><i class="fa fa-link"></i> 
          <span>店铺管理</span>
            <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
          </a>
          <ul class="treeview-menu">
            <li><a id="load-shop-id">店铺信息</a></li>
            <li><a id="load-orders-id">订单管理</a></li>
            <li><a id="load-items-id">商品管理</a></li>
            <li><a id="load-logout-id">退出店铺</a></li>
          </ul>
        </li>
    </ul>
  </section>
</aside>
  <div class="content-wrapper" >
  <section class="content-header">
    <h1>若衣店铺后台管理系统<small>店铺后台界面</small></h1>
    </br>
  </section>
  <!-- 若衣控件区-->
<div class="content-wrapper" >
  <div id="mainContentId">
<!----------------------------------------------------------------------------------->
      <h1 class="index-p">欢迎回来! <span>123123</span></h1>

<!----------------------------------------------------------------------------------->
  </div>
</div>
  </div>
  <!-- Main Footer -->
<footer class="main-footer">
    <strong>Copyright &copy; 2022.若衣网络电商平台.</strong>
</footer>

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Create the tabs -->
    <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
      <li class="active"><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
      <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
      <!-- Home tab content -->
      <div class="tab-pane active" id="control-sidebar-home-tab">
        <h3 class="control-sidebar-heading">Recent Activity</h3>
        <ul class="control-sidebar-menu">
          <li>
            <a href="javascript:;">
              <i class="menu-icon fa fa-birthday-cake bg-red"></i>
              <div class="menu-info">
                <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
                <p>Will be 23 on April 24th</p>
              </div>
            </a>
          </li>
        </ul>
        <!-- /.control-sidebar-menu -->

        <h3 class="control-sidebar-heading">Tasks Progress</h3>
        <ul class="control-sidebar-menu">
          <li>
            <a href="javascript:;">
              <h4 class="control-sidebar-subheading">
                Custom Template Design
                <span class="pull-right-container">
                    <span class="label label-danger pull-right">70%</span>
                  </span>
              </h4>

              <div class="progress progress-xxs">
                <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
              </div>
            </a>
          </li>
        </ul>
        <!-- /.control-sidebar-menu -->

      </div>
      <!-- /.tab-pane -->
      <!-- Stats tab content -->
      <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
      <!-- /.tab-pane -->
      <!-- Settings tab content -->
      <div class="tab-pane" id="control-sidebar-settings-tab">
        <form method="post">
          <h3 class="control-sidebar-heading">General Settings</h3>

          <div class="form-group">
            <label class="control-sidebar-subheading">
              Report panel usage
              <input type="checkbox" class="pull-right" checked>
            </label>

            <p>
              Some information about this general settings option
            </p>
          </div>
          <!-- /.form-group -->
        </form>
      </div>
      <!-- /.tab-pane -->
    </div>
  </aside>
  <!-- /.control-sidebar -->
  <!-- Add the sidebar's background. This div must be placed
  immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      </div>
      <div class="modal-body">
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary btn-save">Save changes</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- ./wrapper -->
<!-- REQUIRED JS SCRIPTS -->
<!-- jQuery 3 -->
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.min.js"></script>
<script type="text/javascript">
      $(function (){
        doLoadUI("load-shop-id","/shop/shopmsg");
        doLoadUI("load-orders-id","/shop/orderlist");
        doLoadUI("load-items-id","/shop/shopitem");
        $("#load-logout-id").click(function (){
          location.href=`http://localhost:9190`;
        });
        doGetName();
      });

      function doGetName(){
        let url = `/shop/getShopMsg`;
        $.get(url,function (result){
          if (result.status===200){
            $("#mainContentId").data("shop",result.data);
            doLoadNameIndex(result.data);
          }
        });
      }
      function doLoadNameIndex(data){
        $(".index-p span").text(data.username);
      }

      function doLoadUI(id,url){
        $("#"+id).click(function(){//事件处理函数
          console.log("====");
          $("#mainContentId").load(url);
        })
      }

</script>
</body>
</html>





